package com.learn.egcar1.mapper;

import com.learn.egcar1.pojo.dto.VehicleListQuery;
import com.learn.egcar1.pojo.entity.Vehicle;
import com.learn.egcar1.pojo.vo.VehicleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VehicleMapper {
    int addVehicle(Vehicle vehicle);

    List<VehicleVO> getVehicleList(@Param("brand") String brand, @Param("license") String license, @Param("userId") Long userId);

    int deleteVehicle(@Param("id") Long id,@Param("userId") Long userId);
}
